import { useEffect } from 'react';

import { ethers } from 'ethers';

function App() {
  useEffect(() => {}, []);
  const ConnectWallet = async () => {
    const provider = new ethers.providers.Web3Provider(window.ethereum);
    const singer = await provider.send("eth_requestAccounts", []);
    console.log(singer);
  };
  return (
    <div className="App">
      <button onClick={ConnectWallet}>链接钱包</button>
    </div>
  );
}

export default App;
